package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.commit.R;
import com.itheima.pojo.Employee;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee> {
    R<Employee> login(HttpServletRequest request, Employee employee);
    R<String> logout(HttpServletRequest request);
    R<String> add(HttpServletRequest request,Employee employee);
    R<Page> select(int page,int pageSize,String name);
    R<String> update(HttpServletRequest request,Employee employee);
    R<Employee> getByIdd(Long id);
}
